t=int(input())
while t>0:
    t-=1
    n=int(input()) 
    s=[0]*n
    a=list(map(int,input().split(' ')))
    s[0]=a[0]
    for i in range(1,n):
        s[i]=s[i-1]+a[i]
    flag=0
    for i in range(n):
        if s[i]==s[n-1]-s[i]:
            flag=1
            break
    if flag:
        print("Yes")
    else :
        print("No")
    s.clear
    a.clear